#include <iostream>
#include <sys/types.h>
#include <sys/socket.h>
#include <stdio.h>
#include <sys/un.h>
#include <unistd.h>
#include <errno.h>
#include <pthread.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string>

/*
string commands[]=
{"command:ls",
"command:get" //filename\r\n
};*/

class FileClientOnServer{
public :
	FileClientOnServer(int sock,std::string shareDir="default");
    void ProcCommand() ;
    bool sendFile(std::string fname );
    bool ls() ;
private:
	int mSock;
    char mReadBuf[1024];
    int mReadBytes;
    char mBuf[2050] ;
    int  mBufBytes ;
    std::string mShareDir;
};




